package com.cloud.api.domain.job;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author 杨斌
 * 2025-01-2025-01-14
 */
@Data
@TableName("t_ev_statistics")
@Schema(name = "EvStatistics", description = "区域分布,保留每辆车的最后一条数据")
public class EvStatistics implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "时间 年月日")
    @TableField("dt")
    private LocalDate dt;

    @Schema(description = "vin")
    @TableField("vin")
    private String vin;

    @Schema(description = "定位时间")
    @TableField("op_time")
    private LocalDateTime opTime;

    @Schema(description = "总里程")
    @TableField("accumulative_mileage")
    private Long accumulativeMileage;

    @Schema(description = "运行里程")
    @TableField("running_mileage")
    private Long runningMileage;

    @Schema(description = "纬度")
    @TableField("lat")
    private Long lat;

    @Schema(description = "经度")
    @TableField("lng")
    private Long lng;

    @Schema(description = "充电量")
    @TableField("charge")
    private Object charge;

    @Schema(description = "车辆位置")
    @TableField("address")
    private String address;

    @TableField("city")
    private String city;

    @TableField("province")
    private String province;
}
